import request from '@/router/axios';

export const getList = (page, size, params) => {
  return request({
    url: '/order/supplierOrderDistribution/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}


export const getListForSupplier = (page, size, params) => {
  return request({
    url: '/order/supplierOrderDistribution/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}

export const getDetail = (distributionId) => {
  return request({
    url: '/order/supplierOrderDistribution/detail',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      distributionId,
    }
  })
}

export const sendGoods = (row) => {
  return request({
    url: '/order/supplierOrderDistribution/sendGoods',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
		distributionId:row.distributionId,
		ecId:row.ecId,
		shipCode:row.shipCode,
		distributionDesc:row.distributionDesc,
        ecName:row.ecName,
    }
  })
}
export const modifyLogistics = (row) => {
  return request({
    url: 'order/supplierOrderDistribution/modifyLogistics',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}